public class Role {
    public String name;
    public String fate;//命途
    public String attribution;//属性
    public int starNum;//星魂

    public Role(){
        this.name = "砂金";
        this.fate = "存护";
        this.attribution  = "虚数";
        this.starNum = 0;
    }

    public Role(String name,String fate,String attribution,int fateNum){
        this.name = name;
        this.fate = fate;
        this.attribution = attribution;
        this.starNum = fateNum;
    }

    public void e(){
        System.out.println(this.name + "正在孤注一掷");
    }

    public void q(){
        System.out.println(this.name + "正在拨转轮盘");
    }

    public void a(){
        System.out.println(this.name + "正在产点");
    }

    public void s(){
        System.out.println(this.name + "welcome to my world");
    }

    public void show(){
        System.out.println("角色：" + this.name+" 命途：" + this.fate+" 属性："+ this.attribution+" 星魂：" + this.starNum);
    }

    public static void main(String[] args) {
        Role role = new Role();
        role.show();
        role.a();
        role.e();
        role.q();
        System.out.println();

        Role role1 = new Role("知更鸟","同协","物理",1);
        role1.show();
        role1.s();
        role1.starNum++;
        System.out.println("星魂提升至" + role1.starNum);
    }
}
